<script lang="ts" setup>
import { ref } from "vue";
import style from "@/styles/js.module.scss";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
const locale = ref<any>(zhCn);
// // 根据浏览器当前主题设置系统主题色
// const setDefaultTheme = () => {
//   if (wsCache.get('isDark') !== null) {
//     appStore.setIsDark(wsCache.get('isDark'))
//     return
//   }
//   const isDarkTheme = isDark()
//   appStore.setIsDark(isDarkTheme)
// }

// setDefaultTheme()
</script>
<template>
  <el-config-provider :locale="locale" class="xh-layout" :namespace="style.namespace">
    <router-view></router-view>
  </el-config-provider>
</template>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
</style>
